/**
 * @Date 2023-02-21 10:03:49
 * @Remark
 */

import { dictState } from "state/global";

// react
// lib
// store
// controller

const TableColumns = [
  {
    title: "记录Id",
    dataIndex: "id",
  },
  {
    title: "用户Id",
    dataIndex: "userId",
  },
  {
    title: "用户账号",
    dataIndex: "userName",
  },
  {
    title: "副本Id",
    dataIndex: "copyId",
  },
  {
    title: "书名",
    dataIndex: "title",
  },
  {
    title: "ISBN",
    dataIndex: "isbn",
  },
  {
    title: "计费金额",
    dataIndex: "price",
  },
  {
    title: "计费费率",
    dataIndex: "rate",
  },
  {
    title: "数量",
    dataIndex: "count",
  },
  {
    title: "处罚金额",
    dataIndex: "punishment",
  },
  {
    title: "状态",
    dataIndex: "status",
    render: (el:string) => dictState.IllegalStatusList.find(item => item.code === el)?.name
  },
];

export default TableColumns;
